<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2019/9/19 0019
 * Time: 13:43
 */

namespace app\common\controller;


class DateCommon
{
    //传入时间戳转换：时间字符串格式转化时间戳，时间戳格式直接输出
    public function OutUnixByTime($time){
        return !strtotime($time) ? $time:strtotime($time);
    }
}